package com.wanmait.heating.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanmait.heating.mapper.UrbanMapper;
import com.wanmait.heating.pojo.Urban;
import com.wanmait.heating.service.UrbanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UrbanServiceImpl implements UrbanService {

    @Resource
    private UrbanMapper urbanMapper;

    @Override
    public void insert(Urban object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Urban object) {

    }

    @Override
    public Urban findById(Integer id) {
        return null;
    }


    //查询所有的街道
    @Override
    public List<Urban> findAll() {

        return urbanMapper.findAll();
    }

    @Override
    public PageInfo<Urban> findPage(int pageNum, int pageSize) {
        return null;
    }


    //根据UrbanId查询street
    @Override
    public Urban selectByUrbanId(Integer id) {

        return urbanMapper.selectByUrbanId(id);
    }
}
